//
//  CommonDefine.swift
//  DataStructuresAlgorithms
//
//  Created by xiangzuhua on 2021/3/15.
//

import Foundation
import UIKit

enum DataStructuresType: String {
    case array = "数组"
    case linklist = "链表"
    case stack = "栈"
    case queue = "队列"
}
enum AlgorithmsType: String {
    case recursion = "递归"
    case sort = "排序"
}

let screenWidth: CGFloat = UIScreen.main.bounds.width
let screenHeight: CGFloat = UIScreen.main.bounds.height

let isIPhoneX: Bool = {
    var isX = false
    if #available(iOS 11.0, *) {
        isX = UIApplication.shared.windows.first{$0.isKeyWindow}?.safeAreaInsets.bottom ?? 0.0 > 0.0
    }
    return isX
}()



